﻿<%@ Page Language="C#" MasterPageFile="~/MasterPages/BaseMaster.master" CodeFile="RegisterProvider.aspx.cs" Inherits="restaurant_RegisterProvider" %>
<%@ MasterType VirtualPath="~/MasterPages/BaseMaster.master" %>
<script runat="server">
   //void Page_Load(object sender, EventArgs e) {
   //   submit_button.Attributes.Add("onclick",
   //        "javascript:alert('ALERT ALERT!!!')");

   //   UpdateNotice("shit", false);
   //}
</script>


<asp:Content ID="Content" ContentPlaceHolderID="Base_ContentPlaceHolder" Runat="Server">
<form runat="server">
<div id="register_user" style="text-align:center">
    <div id="treaty" style="width:40%; text-align:left">
    <ol>
    <li>注册饭菜价格不得高于贵餐厅实际价格</li>
    <li>饭菜质量不得低于餐厅实际水平</li>
    <li>餐厅外送承诺必须竭力执行</li>
    <li>消费者不满意的餐厅,本网站有权终止与其合作</li>
    <li>菜品必须干净安全，本站保留追求法律责任的权利</li>
    <li>免费注册通过资格评定后生效</li>
    </ol>
    <asp:RadioButton ID="agree_radio" runat="server" OnCheckedChanged="OnRadioBtnAgreeChecked" Text = "接受以上条款" AutoPostBack="true" />
    </div>
    <br />
    <br />
     <table width="40%" style="text-align:left">
        <tr>
            <td><asp:Label ID="username_lable" runat="server" Text="用户名"></asp:Label></td>
            <td style="width:75%">
                <asp:TextBox ID="username_textbox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="username_required_validator" ControlToValidate="username_textbox"
                runat="server" ValidationGroup="register_group" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="pwd_lable" runat="server" Text="密码"></asp:Label></td>
            <td style="width:75%;text-align:left">
                <asp:TextBox ID="pwd_textbox" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="pwd_required_validator" ControlToValidate="pwd_textbox"
                runat="server" ValidationGroup="register_group" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="repwd_lable" runat="server" Text="确认密码"></asp:Label></td>
            <td style="width:75%;text-align:left">
                <asp:TextBox ID="repwd_textbox" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="repwd_required_validator" ControlToValidate="repwd_textbox"
                runat="server" ValidationGroup="register_group" ErrorMessage="*"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="mobile_lable" runat="server" Text="联系电话"></asp:Label></td>
            <td style="width:75%;text-align:left">
                <asp:TextBox ID="mobile_textbox" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="mobile_required_validator" ControlToValidate="mobile_textbox"
                runat="server" ValidationGroup="register_group" ErrorMessage="*"></asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="mobile_regex_validator" ControlToValidate="mobile_textbox"
                runat="server" ValidationGroup="register_group" ErrorMessage="*" ValidationExpression="(\d{7,11})">
                </asp:RegularExpressionValidator>
            </td>
        </tr>
        <tr>
            <td><asp:Label ID="identity_card_lable" runat="server" Text="身份证号"></asp:Label></td>
            <td style="width:75%;text-align:left">
                <asp:TextBox ID="idcard_textbox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:center">
            <asp:Button ID="submit_button" runat="server" OnClick="OnSubmitBtnClick" Text="免费注册" ValidationGroup="register_group" Enabled="false" />
             </td>
        </tr>
        <tr>
            <td colspan="2" style="text-align:left"><asp:Label ID="notice_lable" runat="server"></asp:Label></td>
        </tr>
    </table>
</div>
</form>
</asp:Content>

